Built-in jitter measurement circuit for voltage controlled oscillator and phase locked loop

ABSTRACT

A built-in jitter measurement circuit for a VCO (voltage-controlled oscillator) and a PLL (phase-locked loop) is disclosed. The circuit includes a divider for dividing frequency of a signal, a time to digital converter (TDC) for converting the period of the divided signal into digital values, a variance calculator for calculating variance of the period of the divided signal, a mean calculator for calculating mean value of the period of the divided signal, a encoder and counter for encoding and calculating the period of the divided signal, and a state controller as a controller for all other components. The circuit disclosed utilizes output clock of an opened-loop circuit to be measured and a divider for increasing jitter of the original signal. By measuring the bandwidth of a closed-loop circuit, accordingly, jitter of output clock of an opened-loop or an closed-loop circuit is measured by correlating the measured bandwidth and the jitter values from extrapolation.

FIELD OF THE INVENTION

This invention relates to a built-in jitter measurement circuit for a voltage-controlled oscillator (VCO) and a phase-locked loop (PLL), wherein a divider is utilized for outputting the increasing jitter of the signal to be measured such that the jitter of the original un-divided signal is determined by some derivations.

BACKGROUND OF THE INVENTION

A voltage-controlled oscillator (VCO) and a phase-locked loop (PLL) are commonly used components in many circuit designs. Jitter of the output clock signal in a VCO or a PLL determine the quality even the performance of the output signal. Therefore jitter measurement in a VCO and a PLL becomes indispensable in the field of circuit design.

As a result of the rapid advancement of VLSI technology, Frequently, a SoC (System on A Chip) has an embedded PLL. However, there are many restrictions posed when external measuring equipment measures a built-in PLL. Such restrictions include noise from measuring environment and package pins, bandwidth limitation of the external measuring equipment and lack of input and output interface for built-in PLL to external. Compare with prior art methods measuring by external equipment, an internal measuring circuit has advantages such as low cost, faster measuring, better precision, less restriction on measuring capacity, and ability to perform at-speed testing.

Jitter is often less than several hundred pico seconds in many cases. Conventionally, internal measurement technologies are usually implemented by analog designs, which are complicated and expensive.

LogicVision Inc. utilizes components including delay-lines for adjusting delays, flip-flops and counters for counting timing intervals, and then combining with statistics method for calculating jitter. Nonetheless, its precision and accuracy are limited to the resolution of the delay-lines and the setup time of the flip-flops.

Credence utilizes built-in clock generators for generating clocks of predefined periods. A signal to be measured is used for triggering the generated clocks. First cycle trigger the first generated clock and second cycle trigger the second generated clock. After the phase of the first generated clock matches the phase of the second generated clock, the period of the signal to be measured is determined by the number of cycles required for phase matching. By measuring the periods of the signal repeatedly, the jitter of the signal is determined combined with statistics method. The internal clock generators and matching decision devices used in such method restrict precision and accuracy of jitter measurement. Such method also requires extra device for performing statistics calculation and results in larger circuit area.

Precision level of jitter measurement taken by aforementioned methods only reaches several hundred pico seconds. Antonio H. Chan and Gordon W. Roberts proposed a paper titled “A Synthesizable, Fast and High-resolution Timing Measurement Device Using a Component-invariant Vernier Delay Line” in the International Test Conference, 2001. Chan and Roberts applied a differential method for overcoming the precision restriction caused by minimum delay of a component. However, the extra design cost grows exponentially with improved precision, also, the differential values of components will shift when implemented in different manufacturing process and result in undetermined precision and undesirable accuracy.

SUMMARY OF THE INVENTION

The present invention provides a built-in jitter measurement circuit for a voltage-controlled oscillator (VCO) and a phase-locked loop (PLL) in a SoC for eliminating the need of external high-end tester, the interference from noise of environment, noise of output and input pins in measurement.

The main objective of the present invention is to provide a built-in jitter measurement circuit, wherein period jitter and long-term jitter are determined by statistics calculation performed by the circuit and as a result eliminating the needs for massive data output and a process for complicated statistical analysis of the data.

Another objective of the present invention is to provide a built-in jitter measurement circuit, wherein a test integration method and a test subtraction method are applied for increasing precision and accuracy of jitter measurement.

Another objective of the present invention is to provide a built-in jitter measurement circuit, wherein an all digital standard cell-based design is adapted for increasing reliability and noise immunity. Such design avoids difficulties faced in analog designed and is suited for different manufacturing processes.

Another objective of the present invention is to provide a built-in jitter measurement circuit, wherein the measurement circuit is embedded with DfT (Design for Test) for ensuring the test quality.

Another objective of the present invention is to provide a built-in jitter measurement circuit, wherein the circuit is applicable to a core-based self test circuit in a SoC.

Another objective of the present invention is to provide a built-in jitter measurement circuit, wherein measuring the divided and jitter increased signal of the output clock of the opened-loop circuit and accordingly long-term jitter of the output clock of the opened-loop circuit can be determined.

Another objective of the present invention is to provide a built-in jitter measurement circuit, wherein jitter measured from several measurements are calculated by extrapolation for recovering the period jitter and eliminating the error caused in measurement.

Another objective of the present invention is to provide a built-in jitter measurement circuit, by measuring the bandwidth of a closed-loop circuit, accordingly, jitter of output clock of the closed-loop, which is jitter defined in a PLL, is measured by correlating the measured bandwidth and the jitter from extrapolation.

Another objective of the present invention is to provide a built-in jitter measurement circuit, wherein TDC comprising latch chain is adapted for measuring periods. The present invention is characterized by being able to perform operating modes of HOLD, CLEAR and RUN in the same cycle, and a fact that values represented by digital output are in proportion to the time of the periods.

Another objective of the present invention is to provide a built-in jitter measurement circuit, where the circuit performs statistical calculation. The outputs of the TDC and the square of the outputs are added up for determining the jitter of the signal.

Another objective of the present invention is to provide a built-in jitter measurement circuit, equalization encoding is applied for linearizing the output of the TDC and balancing the difference between rising-time and falling-time of the signal in a standard cell in the latch chains so that measurement errors are reduced and enhancing the precision.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a Gaussian distribution diagram of periodical signal jitter;

FIG. 2 is a curve diagram illustrating measurement of an opened-loop and a closed-loop jitter;

FIG. 3 is a diagram illustrating waveform correlation between signal to be measured x(t) and divided signal to be measured y(t);

FIG. 4 a is a schematic curve diagram illustrating the jitter measurement method used according to the present invention;

FIG. 4 b is a curve diagram illustrating frequency response of a PLL;

FIG. 5 is a design block diagram illustrating the jitter measurement circuit;

FIG. 6 a is a design block diagram illustrating a time to digital converter (TDC);

FIG. 6 b is a design block diagram illustrating a test circuit having multiplexers and D flip-flops;

FIG. 7 is a timing diagram illustrating the TDC;

FIG. 8 is a data diagram illustrating comparison between linear encoding and equalization encoding;

FIG. 9 is a data diagram illustrating simulation results of different input periods;

FIG. 10 is data diagram illustrating simulation results of different divided settings; and

FIG. 11 is a data diagram illustrating simulation results of different input jitter.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

(I) Jitter Measurement Scheme

FIG. 1 describes a Gaussian distribution of jitter for periodical signal, where t is a random variable of signal's period, p(t) is a probability density and σ_(x) is the standard deviation. FIG. 2 describes measurement results of long-term jitter of an opened-loop and a closed-loop circuits, where T is time, σ_(L)(T) is a long-term jitter for T, κ is a constant coefficient, and τ_(L) is the loop bandwidth of a closed-loop circuit. For an opened-loop signal, if its period is T and period jitter is σ_(P), then the n-periods long-term jitter for it is σ_(L)(nT)={square root}{square root over (n)}*σ_(P). However, the long-term jitter for a closed-loop circuit is expected to be stabilized as ${\sigma_{L}\left( \tau_{L} \right)} = {\sqrt{\frac{\tau_{L}}{T}}*\sigma_{P}}$ when the measurement time is longer than τ_(L). Such stabilized long-term jitter measurement of a closed-loop circuit is considered as the jitter measurement of a PLL.

Based on the conclusions above, as shown in the FIG. 3, if a periodic signal to be measured is x(t), period of each cycle is x₁, x₂, x₃ . . . , signal divided by n is y(t), each period set is y₁, y₂, y₃ . . . , and then equations are described as follows: y ₁ =x ₁ +x ₂ + . . . +x _(n) y ₂ =x _(n+1) +x _(n+2) + . . . +x _(2n) . . . y _(k) =x _((k−1)n+1) +x _((k−1)n+2) + . . . +x _(kn) . . .

Also, new random variables are defined as follows: S ₁ ={x ₁ , x _(n+1) , x _(2n+1), . . . } S ₂ ={x ₂ , x _(n+2) , x _(2n+2), . . . } S ₃ ={x ₃ , x _(n+3) , x _(2n+3), . . . } . . . Y={y ₁ , y ₂ , y ₃, . . . }

As a result, Y=S₁+S₂+S₃+ . . . +S_(n). Because S_(k) (k=1,2, . . . ,n) are random variables independent of each other for a opened-loop PLL or VCO, therefore equations are described as follows: M _(Y) =M _(S) ₁ +M _(S) ₂ + . . . +M _(S) _(n) σ² _(Y)=σ² _(S) ₁ +σ² _(S) ₂ + . . . +σ² _(S) _(n)

For random variables, M_(s1)=M_(s2)= . . . =M_(sn)=M_(X) and σ_(s1)=σs2= . . . =σ_(sn)=σ_(X), accordingly the equation is reduced to: M _(Y) =nM _(X) σ² _(Y) =nσ ² _(X)

The jitter of the signal to be measured x(t) is too low to be accurately measured. On the other hand, the jitter of the signal to be measured y(t) is not. So by measuring the jitter of the signal divided by n, y(t), long-term jitter of signal x(t) with n times period is attained. Also, it follows that the period jitter (σ_(X)) of x(t) can also be attained. In addition, If there are errors caused by frequency divider or other factors, a new random variable E={e₁, e₂, e₃, . . . } is defined to represent the errors. Accordingly, equations are represented as follows: Y′={y ₁ +e ₁ , y ₂ +e ₂ , y ₃ +e ₃, . . . } M _(Y′) =nM _(X) +M _(E)   (EQU-1) σ² _(Y′) =nσ ² _(X)+σ² _(E)

According to the equations, calibration can be performed as long as measurement data by setting different n is provided. Thus errors are corrected and measurement accuracy is enhanced. In other words, the long-term jitter of the original signal can be attained by measuring the period jitter of the signal having frequency divided according to the conclusion reached above. As J₁, J₂, J₃ and the curve linked in between shown in FIG. 4 a, opened-loop curve is attained after measurement errors are calibrated by setting different n and extrapolation is conducted. Then as shown in the FIG. 4 b, τ _(L) is the inverse of the measurement of the bandwidth of the PLL when input frequency is set in increments. Apply the τ_(L) in the FIG. 4 a. The jitter of PLL J_(PLL) (short for stabilized value of long-term jitter of a closed-loop PLL) is thus attained at the intersection of opened-loop curve and the τ_(L) curve.

(II) An Implementation of Embedded Jitter Measurement Circuit

An embedded jitter measurement circuit is described as the following. The circuit is provided for measuring signal after frequency dividing and is based on the equations as follows: $\begin{matrix} {M_{y} = {\sum\limits_{i = 1}^{N}{y_{i}/N}}} \\ {\sigma_{y}^{2} = {\left( {\sum\limits_{i = 1}^{N}{y_{i}^{2}/N}} \right) - M_{y}^{2}}} \end{matrix}$

The divisor N in the equations above can be set as 2⁷=128 to reduce the hardware area.

As shown in FIG. 5, a block diagram of the embedded circuit is described which includes a 1/n Divider 1, a state controller 2, a variance calculator 3, a mean calculator 4, a encoder and counter 5, and a time to digital converter (TDC) 6.

The circuit operates as following steps. The divider 1 divides an input signal and outputs a signal, which is easier to be measured than the original signal. The period of the divided signal is converted into digital values by TDC 6, encoder and counter 5. The digital values are put into calculation by the variance calculator 3 and the mean calculator 4 for calculating the mean of period and jitter value of the divided signal. The jitter value calculated represents the long-term jitter of the original signal with a period of n times. In addition, because the n can be sets to different values, an equation 11 can be applied for calculating the period jitter of the original signal.

The design of the TDC 6 is shown in the FIG. 6 a. The TDC 6 includes a latch chain 61, a counter 62, an encoder 63 and a set of D flip-flops 64. Digital output values represent the time when the input signal during high level. By appropriate timing setting, the TDC performs operating modes of HOLD, RUN and CLEAR in a single synchronous cycle according to the present invention. When signal enable goes to low level, the latch chain 61 stop to transmit signal, the operating mode is in HOLD mode. When the signal enable goes to high level and the reset signal goes to low level, the signal will be inversed at a NOR-gate and circulate in the latch chain 61, the operating mode is in RUN mode. When the signal enable goes to high level and the reset signal goes to high level, the latch chain continues to circulate digital value zero until the whole loop is stored with digital value zero, the operation mode is in CLEAR mode. Because rise delay time and the fall delay time may not be the same in the latch chain 61, equalization encoding is used in the present invention for enabling a linear curve between the TDC output and the period of the original signal.

Refer to FIG. 6 b, a DfT (Design for Test) circuit is embedded in the measurement circuit. Before implement with full scan design, the fault coverage achieved is only 63%. If only full scan is implemented, then the fault coverage can be improved as 82%. When the circuit further comprises a multiplexer 65 and a D flip-flop 66 for correcting random output of latch chain, the fault coverage is increased as 91% and the test coverage is increased as 100%.

To realize the function of TDC 6 described previously, the timing design implemented in the embodiment according to the present invention is as shown in FIG. 7. A first clock clk is delayed for a time t_(d) and results in a second clock clkd. The clkd is used for assisting to the timing control of a reset signal rst and control signal enable. When the first clock goes to high level, the operation mode is in the RUN mode. When the first clock goes to low level, the operation mode is in a HOLD mode. When the reset signal rst goes to rising edge, the value of the encoder and counter is latched. It follows that the latch chain is cleared to zero and the operation mode enters into CLEAR mode before the following first clock clk goes to high level.

The present invention is characterized by being able to perform operating modes of HOLD, CLEAR and RUN in the same cycle, and the digital signal measured is in proportion to the time duration of high level. Consequentially, the width of high (the time duration that signal equals to 1) must have to form a stable duty cycles, thus the measurement result is in proportion to the period. The divider used in the present invention provides a stable duty cycle signal to the TDC when n>=2. The present invention provides a continuous measuring of period for each clock generated without waiting.

Equalization encoding is another concept proposed in the present invention for eliminating measurement errors. Such measurement errors are caused by the difference between the rising-time and the falling-time in each standard cell. Such measurement errors also result in depicted errors of the TDC output. An example is described as below. As shown in the FIG. 8, the first column represents steps the signal in the latch chain moved, and the second column represents the actual delay time depicted. It is noted that the difference between the beginning digital values is low due to the delay time is short, and the difference between the following digital values is high due to the delay time is long. If a traditional encoding (T.E.) is implemented in the example, the same steps result in the same code. Thus, based on the T.E., depicted time represented by the digital values output from the TDC results in significant errors. The third column is the T.E. The fourth column is the depicted delay indicated by each code. The fifth column is the error percentage of the difference of indicated time and the actual time, and divided by the average time step, wherein the average time step is 2.4 ns/8=0.3 ns: ${Error} = {\frac{{{Encoded}\quad{Delay}} - {{Actual}\quad{Delay}}}{{Averge}\quad{Time}\quad{Step}} \times 100\quad\%}$

The equalization encoding proposed by the present invention is a method for selecting a code, which is the closest value of the output digital value output from the TDC. The delays between adjacent codes almost equal to each other hence the method is called equalization code. Such method can be designed in the register transfer level before the synthesis. The area and speed achieved by the circuit mentioned above is similar to the area and speed achieved by the circuit synthesized by T.E. The sixth column in the FIG. 8 is the equalization encoding (E.E.) proposed in the present invention. The seventh column is the depicted time indicated. The eighth column is the accumulated delay time based on the E.E. according to the present invention. According to data in the eighth column, it is noted that the E.E. of present invention significantly eliminates the errors compare to the T.E.

(III) Simulation Result of the Embodiment of the Present Invention

Simulation result of the embodiment is described in the FIG. 9, FIG. 10 and FIG. 11 for a TSMC 0.25 um design, wherein T is the period of an input signal, σ_(x) is the jitter of the input signal, n is the divisor applied in the input divider, and mean and var2 are the digital output values from the embedded test circuit. Jitter σ_(m) and the measurement errors can be attained from the equation as follows: $\sigma_{m} = {\sqrt{n \times {var}\quad 2} \times \frac{T}{mean}}$ ${error} = {\frac{\sigma_{m} - \sigma_{x}}{\sigma_{x}} \times 100\quad\%}$

For signal with different input period, if n is fixed as 64, and input signal jitter is fixed as 300 ps, then the measurement error is less than 4.23%. The minimum of an input period is limited by three factors. The first is the maximum of the operating speed of the divider, second is the maximum operating speed of the TDC, the third is the jitter can not too large compared to the signal average period. The last row shown in the FIG. 9 is in violation of the third factor mentioned above. Those factors can be expressed in the equations as follows: T≧0.85 ns nT≧30 ns T≧10σ_(x) (If x_(i) is within ±5 σ_(x))

The digital width of TDC determine the maximum of the input period. For a 12 bit design, if the signal period is lower than 0.3×20×212 (ns)=24.6 (us), the error is limited within 5%. Such a range of input signal is subject to the design of a circuit.

FIG. 10 and FIG. 11 are simulation results of output jitter by different settings of the divisor and the input jitter. Most of the results indicate that the error is small. It is observed that, for signal having different σ_(x), the n has to follow the equation below to limit the error within 5%. 0.3×{square root}{square root over (20)}<{square root}{square root over (n)}σ _(x)<0.3×2⁷×⅕→1.34 ns<{square root}{square root over (n)}σ_(x)<7.68 ns

Errors observed in the first row in the FIG. 10 and the first and the second row in the FIG. 11 are significant due to the fact that {square root}{square root over (n)}σ_(x) is too small. The last row in the FIG. 10 fails to perform the simulation because the {square root}{square root over (n)}σ_(x) is too large.

In conclusion, given the period and jitter of a signal to be measured may be different, as long as an appropriate n is selected to introduce in the equations above, simulation results can be attained accurately. In example of the simulation result by the last row in the FIG. 11, the input clock is 1.5 ns and jitter is only 40 ps, for n=1024, the error is only 2%.

Based on the accompanying drawings, a practical embodiment of a built-in jitter measurement circuit for a voltage-controlled oscillator and a phase-locked loop according to the present invention have been described. However, the present invention is not limited to the illustrated method. It will be apparent to those skilled in the art that various changes, improvements, and modifications can be made thereto without departing from the spirit or scope of the invention. 

1. A built-in jitter measurement circuit for a voltage-controlled oscillator (VCO) and a phase-locked loop (PLL) comprising: a divider for dividing frequency of a signal to be measured by n; a state controller as a controller for other components; a variance calculator for calculating variance of the signal to be measured; a mean calculator for calculating mean of the signal to be measured; a time to digital converter (TDC) for converting the period of the signal to be measured into digital values; and a encoder and counter for counting and encoding the digital values output from TDC; wherein, the divider divides the frequency of the signal to be measured, the period of the divided signals to be measured are converted into digital values by TDC, encoder and counter, the digital values are calculated by the variance calculator and the mean calculator, and period means and jitter of the divided signal are determined.
 2. The circuit of claim 1, wherein after the period mean and the jitter of the divided signal are determined, the circuit further comprises a step of performing calculation according to the equation as following: Y′={y ₁ +e ₁ ,y ₁ ,y ₂ +e ₂ ,y ₃ +e ₃, . . . } M _(Y′) =nM _(X) +M _(E) σ² _(Y′) =nσ ² _(X)+σ² _(E), for determining the period jitter of the original signal (σ_(x)).
 3. The circuit of claim 1, wherein the TDC further comprises a latch chain, a counter, an encoder and a set of flip-flops.
 4. The circuit of claim 3, wherein the TDC performs operating modes of HOLD, RUN and CLEAR in a single synchronous cycle.
 5. The circuit of claim 3, wherein the encoder uses equalization encoding for linearizing the output of the TDC and balancing the difference between rising-time and falling-time of the signal in a standard cell in the latch chains so that enhance measurement precision.
 6. The circuit of claim 3, wherein the circuit further comprises a multiplexer and a set of D flip-flops for correcting random output of latch chain and increasing fault coverage. 